home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-01 / snip1292.zip / SOUND.C < prev    next >
C/C++ Source or Header  |  1992-12-26  |  598b  |  31 lines

  1. /*
  2. **  SOUND.C
  3. **
  4. **  Original Copyright 1988-1991 by Bob Stout as part of
  5. **  the MicroFirm Function Library (MFL)
  6. **
  7. **  This subset version is functionally identical to the
  8. **  version originally published by the author in Tech Specialist
  9. **  magazine and is hereby donated to the public domain.
  10. */
  11.  
  12. #include "sound.h"
  13.  
  14. void soundon(void)
  15. {
  16.       short value;
  17.  
  18.       value = inp(SCNTRL);
  19.       value |= SOUNDON;
  20.       outp(SCNTRL, value);
  21. }
  22.  
  23. void soundoff(void)
  24. {
  25.       short value;
  26.  
  27.       value = inp(SCNTRL);
  28.       value &= SOUNDOFF;
  29.       outp(SCNTRL, value);
  30. }
  31.